﻿<UserControl x:Class="FunctionPoint.UserControls.DesignPointWorkItemEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="230" d:DesignWidth="320">
    <Border BorderThickness="1" BorderBrush="Black" CornerRadius="8,8,2,2">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>

            <Grid.Resources>
                <Style x:Key="BaseStyle">

                </Style>
                <Style x:Key="Header" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseStyle}">
                    <Setter Property="FontFamily" Value="Segoe UI"></Setter>
                    <Setter Property="FontSize" Value="14"></Setter>
                    <Setter Property="Margin" Value="2,1,1,1"></Setter>
                    <Setter Property="FontWeight" Value="Bold"></Setter>
                    <Setter Property="VerticalAlignment" Value="Center"></Setter>
                </Style>
                <Style x:Key="LabelHeader" BasedOn="{StaticResource BaseStyle}" TargetType="{x:Type TextBlock}">
                    <Setter Property="FontFamily" Value="Segoe UI"></Setter>
                    <Setter Property="FontSize" Value="10"></Setter>
                    <Setter Property="Margin" Value="2,1,1,1"></Setter>
                    <Setter Property="Background" Value="LightBlue"></Setter>
                    <Setter Property="FontWeight" Value="SemiBold"></Setter>
                </Style>
                <Style x:Key="Label" BasedOn="{StaticResource BaseStyle}" TargetType="{x:Type TextBlock}">
                    <Setter Property="FontFamily" Value="Segoe UI"></Setter>
                    <Setter Property="FontSize" Value="9"></Setter>
                    <Setter Property="Margin" Value="2,1,1,1"></Setter>
                    <!--<Setter Property="Background" Value="LightBlue"></Setter>
                    <Setter Property="FontWeight" Value="SemiBold"></Setter>-->
                </Style>
                <Style x:Key="BorderHeader" TargetType="{x:Type Border}" >
                    <Setter Property="CornerRadius" Value="8,8,0,0"></Setter>
                    <Setter Property="Background" Value="AliceBlue"></Setter>
                    <Setter Property="BorderThickness" Value="0,0,0,1"></Setter>
                    <Setter Property="BorderBrush" Value="Black"></Setter>
                </Style>
                <Style TargetType="{x:Type TextBox}">
                    <Setter Property="VerticalAlignment" Value="Stretch"></Setter>
                    <Setter Property="FontFamily" Value="Segoe UI"></Setter>
                    <Setter Property="FontSize" Value="10"></Setter>
                    <Setter Property="Margin" Value="2,2,2,2"></Setter>

                </Style>

                <Style TargetType="Button">
                    <Setter Property="FontFamily" Value="Segoe UI"></Setter>
                    <Setter Property="FontSize" Value="10"></Setter>
                    <Setter Property="Margin" Value="2,1,1,1"></Setter>
                    <Setter Property="Background" Value="LightBlue"></Setter>
                    <Setter Property="FontWeight" Value="SemiBold"></Setter>
                    <Setter Property="MinWidth" Value="70"></Setter>
                </Style>

                <Style TargetType="ComboBox">
                    <Setter Property="FontFamily" Value="Segoe UI"></Setter>
                    <Setter Property="FontSize" Value="10"></Setter>
                    <Setter Property="Margin" Value="2,2,2,2"></Setter>
                    <Setter Property="Background" Value="LightBlue"></Setter>
                    <Setter Property="FontWeight" Value="SemiBold"></Setter>
                    <Setter Property="MinWidth" Value="70"></Setter>
                </Style>


            </Grid.Resources>

            <Border  Grid.Row="0" Grid.ColumnSpan="3"  Style="{StaticResource BorderHeader}">
                <TextBlock Style="{StaticResource Header}" Text="Function Point Item Title">
                    <TextBlock.ToolTip>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Style="{StaticResource LabelHeader}">Filename:</TextBlock>
                            <TextBlock Style="{StaticResource Label}" Text="{Binding FileName}">Filename:</TextBlock>
                            
                            <TextBlock Style="{StaticResource LabelHeader}">Changeset:</TextBlock>
                            <TextBlock Style="{StaticResource Label}" Text="{Binding SccChangeset}">Filename:</TextBlock>
                            
                            <TextBlock Style="{StaticResource LabelHeader}">Namespace:</TextBlock>
                            <TextBlock Style="{StaticResource Label}" Text="{Binding Namespace}">Microsoft.Windows.Forms</TextBlock>
                            
                            <TextBlock Style="{StaticResource LabelHeader}">Class:</TextBlock>
                            <TextBlock Style="{StaticResource Label}">Control</TextBlock>

                            <TextBlock Style="{StaticResource LabelHeader}">Method:</TextBlock>
                            <TextBlock Style="{StaticResource Label}">GoBabyGo(string name):</TextBlock>
                            
                            <TextBlock Style="{StaticResource LabelHeader}">Line Number:</TextBlock>
                            <TextBlock Style="{StaticResource Label}"></TextBlock>
                            
                        </StackPanel>
                    </TextBlock.ToolTip>
                </TextBlock>
            </Border>
            <StackPanel Grid.Row="1" Grid.ColumnSpan="3" Margin="2,2,2,0" Orientation="Vertical">
                <TextBlock Style="{StaticResource LabelHeader}">Design Point Name:</TextBlock>
                <TextBox Text="Add call to instantiate API"></TextBox>
                <TextBlock Style="{StaticResource LabelHeader}">Designer:</TextBlock>
                <ComboBox ItemsSource="{Binding DesignerList}">
                    
                </ComboBox>
                
                <!--<TextBox Text="Christopher Taylor"></TextBox>-->
                <TextBlock Style="{StaticResource LabelHeader}">Comments:</TextBlock>
                <TextBox MinHeight="60" Name="txtComments" Text="Various comments and then some more to see the value of different types of wrap types and just make it longer and longer so I can see what it does" TextWrapping="Wrap"></TextBox>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">


                    <Button IsCancel="True" Name="btnCancel">Cancel</Button>
                    <Button Click="Button_Click" Name="btnOk" IsDefault="True">OK</Button>

                </StackPanel>
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
